Overview
The REST API is your control plane for the xpander platform, enabling you to:- Manage Agents: Create, update, deploy, and delete AI agents
- Execute Tasks: Invoke agents synchronously, asynchronously, or with streaming
- Control Knowledge: Manage knowledge bases and documents
- Access Toolkits: List and invoke tools across integrations
Base URL
Authentication
All API requests require authentication via thex-api-key header:
Quick Start
API Endpoints
Agents
Create, manage, and invoke AI agents
Tasks
Monitor and manage task executions
Knowledge
Manage knowledge bases and documents
Toolkits
Access and invoke tools
Key Features
- 🌐 Universal Access: Works with any programming language that supports HTTP
- ⚡ Multiple Execution Modes: Sync, async, and streaming invocation
- 📊 Complete CRUD: Full lifecycle management for all resources
- 🔒 Secure: API key authentication with organization-level scoping
- 📖 OpenAPI Spec: Complete OpenAPI 3.1 specification available
Response Format
All API responses follow a consistent JSON structure:Error Handling
The API uses standard HTTP status codes:200- Success201- Created400- Bad Request401- Unauthorized404- Not Found422- Validation Error500- Internal Server Error
Rate Limits
The API implements rate limiting to ensure fair usage:- Standard: 100 requests per minute
- Burst: 1000 requests per hour

